package com.example.lianguisystem.mapperLianGui;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AppMessageMapper {
    Integer selectCount(@Param("username") String username,@Param("cid") String cid);

    Integer insertInto(@Param("username") String username, @Param("cid") String cid);

    Integer updateByUsername(@Param("username") String username, @Param("cid") String cid);
    
    @Select("SELECT top 1 cid FROM T_APP_MESSAGE WHERE username = #{username}")
    String selectCidByUsername(@Param("username") String username);
}
